package cn.ante.ymcc.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;
@Data
@Component
//自动从配置读取，按照前缀过滤出配置项，同名匹配给对象的属性
@ConfigurationProperties(prefix = "ymcc.verifycode")
@RefreshScope
public class VerifyCodeProperties {
    private Long interval;
    private Integer length;
    private Long expire;
    private Integer imgCodeLength;
    private Long imgCodeExpire;
}
